<!-- 
	这个是默认的树数据 ,  根据传递的四个参数进行对应的展示

 -->
<!DOCTYPE html>
<html lang="zh">
<meta charset="utf-8">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<meta name="keywords" content="">
<meta name="description" content="">
</head>
@include("/common/cssAndJs.html"){}
<link href="${ctxPath}/lib/jquery-ztree/3.5/css/metro/zTreeStyle.css"
	rel="stylesheet" />
<script src="${ctxPath}/lib/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<style>
body {
	height: auto;
	font-family: "Microsoft YaHei";
}

button {
	font-family: "SimSun", "Helvetica Neue", Helvetica, Arial;
}
</style>
<body class="hold-transition box box-main">
	<input id="treeId" name="treeId" type="hidden" />
	<input id="treeName" name="treeName" type="hidden" value="" />
	<div class="wrapper">
		<div class="treeShowHideButton" onclick="search();">
			<label id="btnShow" title="显示搜索" style="display: none;">︾</label> <label
				id="btnHide" title="隐藏搜索">︽</label>
		</div>
		<div class="treeSearchInput" id="search">
			<label for="keyword">关键字：</label><input type="text" class="empty"
				id="keyword" maxlength="50">
			<button class="btn" id="btn" onclick="searchNode()">搜索</button>
		</div>
		<div class="treeExpandCollapse">
			<a href="javascript:" id="btnExpand">展开</a> <a href="javascript:"
				id="btnCollapse">折叠</a>
		</div>
		<div id="tree" class="ztree treeselect"></div>
		<div id="treeEmpty" ></div><!-- tree 信息为空的时候的显示 -->
	</div>
	<div class="layui-layer-btn">
		<a class="layui-layer-btn0" onclick="javascript:loadObj()"><i
			class="fa fa-check"></i> 确定</a>
		<!--  <a class="layui-layer-btn1" onclick="$.modal.close()"><i class="fa fa-close"></i> 关闭</a> -->
		<a class="layui-layer-btn1"
			onclick="$.lay.closeIframe()"><i
			class="fa fa-close"></i> 关闭</a>

	</div>
	<script>
		//初始化 树带过来的参数  
		var roleId= "${id}";  //当前角色Id
		var treeUrl = "${ctxPath}/tSystemRole/menuList?roleId="+roleId; //树数据默认展示的url
		var treeTitle = "name"; //树数据title 的展示 
	</script>
	<script src="${ctxPath}/js/view/system/tSystemRole/menuTree.js"></script>
</body>
</html>
